import request from '@/utils/request'

// 经书列表
export function apiScriptureList(params) {
    return request({
        url: '/cmsScripture/list',
        method: 'get',
        params
    })
}

// 批量增加
export function apiScriptureAddMore(params) {
    return request({
        url: '/cmsScripture/crawlQuanxue',
        method: 'get',
        params
    })
}

// 新增经书
export function apiScriptureAdd(data) {
    return request({
        url: '/cmsScripture/add',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 编辑经书
export function apiScriptureEdit(data) {
    return request({
        url: '/cmsScripture/update',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 删除经书
export function apiScriptureDel(params) {
    return request({
        url: '/cmsScripture/delete',
        method: 'post',
        params
    })
}

// 经书所有卷
export function apiScriptureVolume(params) {
    return request({
        url: '/cmsScripture/listVolume',
        method: 'get',
        params
    })
}

// 增加卷
export function apiScriptureVolumeAdd(data) {
    return request({
        url: '/cmsScripture/addVolume',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 卷详情
export function apiScriptureVolumeDetail(params) {
    return request({
        url: '/cmsScripture/getVolume',
        method: 'get',
        params
    })
}

// 编辑卷
export function apiScriptureVolumeEdit(data) {
    return request({
        url: '/cmsScripture/updateVolume',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 删除卷
export function apiScriptureVolumeDel(params) {
    return request({
        url: '/cmsScripture/deleteVolume',
        method: 'post',
        params
    })
}

// 回向文列表
export function apiDedicationList(params) {
    return request({
        url: '/cmsDedication/list',
        method: 'get',
        params
    })
}

// 增加回向文
export function apiDedicationAdd(data) {
    return request({
        url: '/cmsDedication/add',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 编辑回向文
export function apiDedicationEdit(data) {
    return request({
        url: '/cmsDedication/update',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 删除回向文
export function apiDedicationDel(params) {
    return request({
        url: '/cmsDedication/delete',
        method: 'post',
        params
    })
}